const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,//头像
  name: state => state.user.userInfo.username,//名字
  companyId: state => state.user.userInfo.companyId,// 公司 ID
  isHaveAsyncRoute: state => state.app.asyncRoute,// 动态路由是否挂载了规则数组
  menus: state => state.user.userInfo.roles.menus,//返回路由权限的标识数组
}
export default getters
